<?php
	require_once("classes/checkLogin.class.php");
	require_once("classes/SelectedChampion.class.php");
	require_once("classes/AddComment.class.php");
	checkLogin::checkUser();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
	<head>
		<title>Selected Champion</title>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		
		<link href="css/menu.css" rel="stylesheet" type="text/css" />
		<link href="css/addComment.css" rel="stylesheet" type="text/css" />
		
		<script type="text/javascript" src="js/menuScripts.js"></script>
	</head>
	
	<body>
		<!-- Menu -->
		<?php
			include 'menu.html';
		?>
		
		<!-- Header -->
		<div id="header">
			<?php
				if(isset($_GET['summoner']))
				{
					$summoner = $_GET['summoner'];
				}
				else
				{
					$summoner = $_SESSION['username'];
				}
				$bestChampions = new SelectedChampion($summoner);
				$bestChampions->parseRequest();
				$bestChampions->showChampion($_GET['championName']);
			?>
			<div id="abilities">
				<?php
					$bestChampions->showSelectedChampion($_GET['championName']);
				?>
			</div>
			<div id="notes">
				<?php
					$bestChampions->showBars($_GET['championName']);
				?>
			</div>
		</div>
		
		<div id="formulaire">
			<?php
				$formulary = new AddComment($summoner, $_SESSION['username'], $_GET['championName']);
				$formulary->parseRequest();
				$formulary->createForm();
			?>
		</div>
	</body>
</html>